<?php
// 定义产品根目录
define('PRODUCT_PATH', dirname(__FILE__));
// 定义产品缓存目录
define('CACHE_PATH', dirname(PRODUCT_PATH) . '/cache');

if (is_file(PRODUCT_PATH . '/test'))
{
    define('PRODUCT_STATUS','test');
}
elseif (is_file(PRODUCT_PATH . '/develop'))
{
    define('PRODUCT_STATUS','develop');
}
else
{
    define('PRODUCT_STATUS','deploy');
}


// 载入框架 
require_once(_ROOT_ . '/rf/rf.php');

// 数据库配置
$mysqlConfig = array
    (
        'develop'  => array
            (
                'host'     => '127.0.0.1',
                'username' => 'root',
                'password' => '123456',
                'database' => 'i'
            ),
        'test' => array
            (
                ''
            ),
        'dep'  => array
            (
            )        
    );
rf::setIni('mysql',$mysqlConfig);


rf::run();


